import request from '@/utils/request'

// 查询员工活动列表
export function listStaffActivity(query) {
  return request({
    url: '/staffActivity/listByDto',
    method: 'get',
    params: query
  })
}

// 查询员工活动详细
export function getStaffActivity(staffActivityId) {
  return request({
    url: '/staffActivity/findById/' + staffActivityId,
    method: 'get'
  })
}

// 新增员工活动
export function addStaffActivity(data) {
  return request({
    url: '/staffActivity/insert',
    method: 'post',
    data: data
  })
}

// 修改员工活动
export function updateStaffActivity(data) {
  return request({
    url: '/staffActivity/updateById',
    method: 'put',
    data: data
  })
}

// 删除员工活动
export function delStaffActivity(staffActivityId) {
  return request({
    url: '/staffActivity/deleteByIds/' + staffActivityId,
    method: 'delete'
  })
}